/*
 * @Author: 一路向阳 tt_sunzhenfeng@163.com
 * @Date: 2024-05-15 12:27:13
 * @LastEditors: 一路向阳 tt_sunzhenfeng@163.com
 * @LastEditTime: 2024-05-15 12:27:41
 * @FilePath: \react_nest_demo\nest_service\src\course\dto\delete-course.dto.ts
 * @Description: 课程删除接口字段校验
 */
import { IsNotEmpty, IsNumber } from 'class-validator';
export class DeleteCourseDto {
  @IsNotEmpty({ message: 'id限制不可为空' })
  @IsNumber(
    { allowNaN: false, allowInfinity: false },
    { message: 'id限制必须为数字' },
  )
  id: number;
}
